package cs304.p3.library.domain;

import java.util.List;

import com.google.common.collect.Lists;

public class Clerk {

	private String bid;
	private String latestCallNumber; // this is used to add books
	private List<String> checkoutBooks;
	private List<BookCopy> overdues;
	private String returnCopyNumber;
	private String returnCallNumber;

	public Clerk() {
		checkoutBooks = Lists.newArrayList();
	}

	public void setBID(String bid) {
		this.bid = bid;
	}

	public String getBID() {
		return bid;
	}
	
	public void setOverdues(List<BookCopy> list){
		overdues = list;
	}
	
	public List<BookCopy> getOverdues(){
		return overdues;
	}

	public void setReturnCallNumber(String num) {
		returnCallNumber = num;
	}

	public String getReturnCallNumber() {
		return returnCallNumber;
	}

	public void setReturnCopyNumber(String num) {
		returnCopyNumber = num;
	}

	public String getReturnCopyNumber() {
		return returnCopyNumber;
	}

	public String getCheckOutBook() {
		return latestCallNumber;
	}

	public void setCheckOutBook(String callNumber) {
		latestCallNumber = callNumber;
		checkoutBooks.add(callNumber);
	}

	public List<String> getCheckOutBooks() {
		return checkoutBooks;
	}

}
